<template>
    <view @tap="__e" class="item data-v-261310e0" :data-event-opts="[['tap', [['handleClick', ['$event']]]]]">
        <block v-if="info.user">
            <image class="left headimg data-v-261310e0" :src="info.user.headimg"></image>
            <view class="right data-v-261310e0">
                <view class="top data-v-261310e0">
                    <view class="name data-v-261310e0">{{ info.user.name }}</view>
                    <view class="time data-v-261310e0">{{ $root.g0 + ' NO.' + info.node_invite_index }}</view>
                </view>
                <view class="bottom data-v-261310e0">
                    <label class="_span data-v-261310e0" v-if="info.status === 0">待发放</label>
                    <single-reward-display @__l="__l" class="data-v-261310e0" :info="info.node_reward" vueId="4bb85c6a-1" v-else></single-reward-display>
                </view>
            </view>
        </block>
    </view>
</template>

<script>
import singleRewardDisplay from '@/components/SingleRewardDisplay/SingleRewardDisplay';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/activityTicket/components/UserItem'],
    {
        '2e20': function (e, t, n) {},
        '495f': function (e, t, n) {
            'use strict';

            (function (e) {
                var a = n('4ea4');
                Object.defineProperty(t, '__esModule', {
                    value: true
                });
                t.default = void 0;
                var o = a(n('2eee'));
                var i = a(n('c973'));
                var r = {
                    components: {},
                    data: function () {
                        return {};
                    },
                    props: {
                        info: {
                            type: Object
                        }
                    },
                    computed: {},
                    onLoad: function () {
                        return (0, i.default)(
                            o.default.mark(function e() {
                                return o.default.wrap(function (e) {
                                    for (;;) {
                                        switch ((e.prev = e.next)) {
                                            case 0:
                                            case 'end':
                                                return e.stop();
                                        }
                                    }
                                }, e);
                            })
                        )();
                    },
                    methods: {
                        handleClick: function () {
                            if ('score' === this.info.node_reward.type) {
                                e.navigateTo({
                                    url: '/pages/myScore/index'
                                });
                            } else {
                                if ('redpack' === this.info.node_reward.type) {
                                    e.navigateTo({
                                        url: '/pages/myRedpack/index'
                                    });
                                } else {
                                    'exclude_card' === this.info.node_reward.type || 'show_card' === this.info.node_reward.type
                                        ? e.navigateTo({
                                              url: '/pages/myCard/index'
                                          })
                                        : 'coupon' === this.info.node_reward.type &&
                                          e.navigateTo({
                                              url: '/pages/myCoupons/index'
                                          });
                                }
                            }
                        }
                    },
                    filters: {}
                };
                t.default = r;
            }.call(this, n('543d').default));
        },
        '6de0': function (e, t, n) {
            'use strict';

            n.d(t, 'b', function () {
                return o;
            });
            n.d(t, 'c', function () {
                return i;
            });
            n.d(t, 'a', function () {
                return a;
            });
            var a = {
                SingleRewardDisplay: function () {
                    return n.e('components/SingleRewardDisplay/SingleRewardDisplay').then(n.bind(null, '979f'));
                }
            };
            var o = function () {
                this.$createElement;
                var e = (this._self._c, this.info.user ? this.$tool.formatDate(this.info.created_at, 'MM/dd hh:mm') : null);
                this.setData(
                    Object.assign(
                        {},
                        {
                            $root: {
                                g0: e
                            }
                        }
                    )
                );
            };
            var i = [];
        },
        '8c1b': function (e, t, n) {
            'use strict';

            var a = n('2e20');
            n.n(a).a;
        },
        a7f7: function (e, t, n) {
            'use strict';

            n.r(t);
            var a = n('6de0');
            var o = n('de6b');
            for (var i in o) {
                if (['default'].indexOf(i) < 0) {
                    (function (e) {
                        n.d(t, e, function () {
                            return o[e];
                        });
                    })(i);
                }
            }
            n('8c1b');
            var r = n('f0c5');
            var c = Object(r.a)(o.default, a.b, a.c, false, null, '261310e0', null, false, a.a, void 0);
            t.default = c.exports;
        },
        de6b: function (e, t, n) {
            'use strict';

            n.r(t);
            var a = n('495f');
            var o = n.n(a);
            for (var i in a) {
                if (['default'].indexOf(i) < 0) {
                    (function (e) {
                        n.d(t, e, function () {
                            return a[e];
                        });
                    })(i);
                }
            }
            t.default = o.a;
        }
    }
]);
(global.webpackJsonp = global.webpackJsonp || []).push([
    'pages/activityTicket/components/UserItem-create-component',
    {
        'pages/activityTicket/components/UserItem-create-component': function (e, t, n) {
            n('543d').createComponent(n('a7f7'));
        }
    },
    [['pages/activityTicket/components/UserItem-create-component']]
]);
</script>
<style>
@import './UserItem.css';
</style>
